package com.iversonx.bridge.example_1.v4.msg.impl;

import com.iversonx.bridge.example_1.v4.msg.MessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 **/
public class UrgencyMessageService extends MessageService {
    private static final Logger LOGGER = LoggerFactory.getLogger(
            UrgencyMessageService.class);
    
    @Override
    public boolean support(String messageType) {
        return "urgency".equalsIgnoreCase(messageType);
    }
    
    @Override
    public void send(String message, String toUser, String sendType) {
        message = "[加急]" + message;
        super.send(message, toUser, sendType);
    }

    public Object watch(String messageId) {
        LOGGER.info("监控消息处理过程");
        return null;
    }
}
